/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.subgoods.entity;

import javax.validation.constraints.NotNull;
import java.util.Date;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 认购商品Entity
 * @author w
 * @version 2021-03-25
 */
public class SubGoods extends DataEntity<SubGoods> {
	
	private static final long serialVersionUID = 1L;
	private String goodsName;		// 商品名称
	private String goodsPic;		// 主图
	private String goodsImgs;		// 详情图
	private Double price;		// 单价
	private Integer num;		// 数量
	private String position;		// 地区
	private String startTime;		// 认购开始时间
	private String endTime;		// 认购结束时间
	private Date beginUpdateDate;		// 开始 更新时间
	private Date endUpdateDate;		// 结束 更新时间

	private String isUnloading;		//是否下架

	private Integer roundsNumber;	//轮数

	private String isSub;			//是否关闭

	private Integer origianNum;

	private String isTrade;   //是否可交易

	private Integer stock;  //显示库存
	
	public SubGoods() {
		super();
	}

	public SubGoods(String id){
		super(id);
	}

	@ExcelField(title="商品名称", align=2, sort=1)
	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}
	
	@ExcelField(title="主图", align=2, sort=2)
	public String getGoodsPic() {
		return goodsPic;
	}

	public void setGoodsPic(String goodsPic) {
		this.goodsPic = goodsPic;
	}
	
	@ExcelField(title="详情图", align=2, sort=3)
	public String getGoodsImgs() {
		return goodsImgs;
	}

	public void setGoodsImgs(String goodsImgs) {
		this.goodsImgs = goodsImgs;
	}
	
	@NotNull(message="单价不能为空")
	@ExcelField(title="单价", align=2, sort=4)
	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}
	
	@ExcelField(title="数量", align=2, sort=5)
	public Integer getNum() {
		return num;
	}

	public synchronized void setNum(Integer num) {
		this.num = num;
	}
	
	@ExcelField(title="地区", align=2, sort=6)
	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}
	
	@ExcelField(title="认购开始时间", align=2, sort=7)
	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}
	
	@ExcelField(title="认购结束时间", align=2, sort=8)
	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	
	public Date getBeginUpdateDate() {
		return beginUpdateDate;
	}

	public void setBeginUpdateDate(Date beginUpdateDate) {
		this.beginUpdateDate = beginUpdateDate;
	}
	
	public Date getEndUpdateDate() {
		return endUpdateDate;
	}

	public void setEndUpdateDate(Date endUpdateDate) {
		this.endUpdateDate = endUpdateDate;
	}

	public String getIsUnloading() {
		return isUnloading;
	}

	public void setIsUnloading(String isUnloading) {
		this.isUnloading = isUnloading;
	}

	public Integer getRoundsNumber() {
		return roundsNumber;
	}

	public void setRoundsNumber(Integer roundsNumber) {
		this.roundsNumber = roundsNumber;
	}

	public String getIsSub() {
		return isSub;
	}

	public void setIsSub(String isSub) {
		this.isSub = isSub;
	}

	public Integer getOrigianNum() {
		return origianNum;
	}

	public void setOrigianNum(Integer origianNum) {
		this.origianNum = origianNum;
	}

	public String getIsTrade() {
		return isTrade;
	}

	public void setIsTrade(String isTrade) {
		this.isTrade = isTrade;
	}

	public Integer getStock() {
		return stock;
	}

	public void setStock(Integer stock) {
		this.stock = stock;
	}
}